package com.kfm.jdbc.day0328;

import java.io.*;
import java.util.Properties;
import java.util.Set;

public class Test01 {

    public static void main(String[] args) {

        InputStream in = Test01.class.getResourceAsStream("db.properties");


        Properties properties = new Properties();

        try {
            properties.load(in);

            Set<Object> objects = properties.keySet();
            for (Object key : objects){
                System.out.println(key + " , " + properties.get(key));
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
